
<?php
class ProductImage extends AppModel {
    
    public $name = 'ProductImage';
    public $useTable = 'product_image';
    public $primaryKey = 'image_id';
    
    public function getMultiImages($id){
        $result = $this->find('all',array('conditions' => array('product_id' => $id)));
        if($result)
            return $result;
        else return FALSE;
    }
}
